package com.csdj.web.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * packageName com.csdj.web.listener
 *
 * @author winver
 * @version 1.0
 * @className MyAppListener
 * @date 2024/11/28
 * @description TODO
 */
@WebListener
public class MyAppListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("应用域创建了");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("应用域销毁了");
    }
}
